package demo.DataStrucAndAlgo.Easy_pritice;

import java.util.Scanner;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/8/1-08-01-19:17
 * @Description：demo.DataStrucAndAlgo.Easy_pritice
 */
public class CountOfDigit_Eng {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        int digit = 0;
        int English = 0;
        for (int i = 0; i < str.length(); i++) {
            if(str.charAt(i) <= '9' && str.charAt(i) >= '0'){
                digit++;
            }else if((str.charAt(i) >= 'a' && str.charAt(i) <= 'z')
                ||(str.charAt(i) >= 'A' && str.charAt(i) <= 'Z')){
                English++;
            }
        }
        System.out.printf("数字有 %d 个，字符有 %d 个\n",digit,English);
    }
}
